﻿using System;

using System.Runtime.Serialization;
using MaLu.Data;

namespace Malu.Entity
{

    [Serializable]
    [DataContract(Name = "SDeformity")]
    [Table("SDeformity", Info = "")]
    public class Deformity : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("name", DataType.VarChar, Length = 50)]
        public string name { get; set; }


        [DataMember]
        [Column("type", DataType.VarChar, Length = 4)]
        public string type { get; set; }

        [DataMember]
        [Column("gender", DataType.VarChar, Length = 2)]
        public string gender { get; set; }

        [DataMember]
        [Column("address", DataType.VarChar, Length = 50)]
        public string address { get; set; }

        [DataMember]
        [Column("District", DataType.Float)]
        public float District { get; set; }

        [DataMember]
        [Column("Town", DataType.Float)]
        public float Town { get; set; }

       

        [DataMember]
        [Column("account", DataType.VarChar, Length = 50)]
        public string account { get; set; }

      
        [DataMember]
        [Column("peoplecount", DataType.Int32, Length = 4)]
        public int peoplecount { get; set; }

        [DataMember]
        [Column("remark", DataType.VarChar, Length = 50)]
        public string remark { get; set; }

        [DataMember]
        [Column("belongto", DataType.VarChar, Length = 50)]
        public string belongto { get; set; }

       

        [DataMember]
        [Column("year", DataType.Int32, Length = 4)]
        public int year { get; set; }

        [DataMember]
        [Column("month", DataType.Int32, Length = 4)]
        public int month { get; set; }

        [DataMember]
        [Column("money", DataType.Float)]
        public float money { get; set; }

        [DataMember]
        [Column("monthmoney", DataType.Float)]
        public float monthmoney { get; set; }

        [DataMember]
        [Column("deformitynum", DataType.VarChar, Length = 50)]
        public string deformitynum { get; set; }

        [DataMember]
        [Column("deformitytype", DataType.VarChar, Length = 20)]
        public string deformitytype { get; set; }
    }
}
